How to get a table name in Magento Resource Collection

Method 1:

 
<?php
...
$this->getResource()->getTable('catalog/category_product');

Method 2:

 
...
Mage::getSingleton('core/resource')->getTableName('catalog/category_product');

Leave a Reply